package com.feisuanyz.lyweb01.pojo.query;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 用户登录和密码找回入参实体类
 *
 * @author deng
 * @date 2025-02-26 11:57:37
 */
@Data
public class UserQuery {

    /**
     * 用户名，必填
     */
    @NotBlank(groups = { QueryGroup.class }, message = "用户名不能为空")
    @Schema(description = "用户名，必填")
    private String username;

    /**
     * 密码，必填
     */
    @NotBlank(groups = { QueryGroup.class }, message = "密码不能为空")
    @Schema(description = "密码，必填")
    private String password;

    /**
     * 邮箱，选填
     */
    @Schema(description = "邮箱，选填")
    private String email;
}
